<?php

namespace Index\ViewModel;

use Think\Model\ViewModel;

Class UseragentViewModel extends ViewModel {

    protected $connection = 'DB';   //连接数据库
    protected $viewFields = array(
	//代理用户表
	'chat_useragent' => array('user_id', 'user_uid', 'ctime', 'app_flag'),
	//用户登录表
	'chat_userlogin' => array('phone', 'password', 'other_login', 'wx_login_code', 'qq_login_code', 'login_ip', 'is_lock', 'is_agent', 'ltime', 'atime', '_on'=>'chat_useragent.user_uid=chat_userlogin.user_uid'));
}
